FROM maven:3.6.3-jdk-17-slim AS builder

WORKDIR /app
COPY pom.xml .

COPY .src ./src

EXPOSE 8080
RUN mvn clean package -DskipTests

CMD ["java","-jar","./app/application.jar","--spring.profiles.active=prod"]

